package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 举报文章表
 * </p>
 *
 * @author Mr.sdy
 * @since 2024-06-12
 */
@Getter
@Setter
@TableName("article_and_report")
@ApiModel(value = "ArticleAndReport对象", description = "举报文章表")
public class ArticleAndReport implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文章作者")
    private Integer authorId;

    @ApiModelProperty("文章ID")
    private Integer articleId;

    @ApiModelProperty("举报人ID")
    private Integer userId;

    @ApiModelProperty("举报类型ID")
    private Integer reportId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态码 1 有效 0无效")
    private Boolean flag;
}
